package com.ymanage.service;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.ymanage.dao.FinancePayGoodsMapper;
import com.ymanage.entity.ProduceOrder;

/**
 * 
 * <p>Title:FinanceIncomeService </p>
 * <p>Description: 进货支出业务层</p>
 * <p>Project:yumi </p>
 * @author alen
 * @Version 1.0
 * @date 2017年9月4日 下午5:27:29
 */
public class FinancePayGoodsService {

	@Autowired
	private FinancePayGoodsMapper financePayGoodsMapper;
	
	/**
	 * 进货单列表
	 * @return
	 */
	public List<ProduceOrder> orderList(){
		
		return financePayGoodsMapper.produceOrderList();
	}
	
	/**
	 * 得到今日进货支出
	 * @return
	 */
	public Double getTodayGoodsPay(Date day){
		
		return financePayGoodsMapper.getTodayGoodsPay(day);
	}
	
	/**
	 * 得到本月进货支出
	 * @return
	 */
	public Double getMonthGoodsPay(){
		
		return financePayGoodsMapper.getMonthGoodsPay();
	}
	
	/**
	 * 得到上月进货支出
	 * @return
	 */
	public Double getPreMonthGoodsPay(){
		
		return financePayGoodsMapper.getPreMonthGoodsPay();
	}
	
	/**
	 * 得到年度进货支出
	 * @return
	 */
	public Double getYearGoodsPay(){
		
		return financePayGoodsMapper.getYearGoodsPay();
	}
	
}
